<%-- 
    Document   : Jstl4
    Created on : 2014/8/18, 下午 02:25:35
    Author     : Yu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean class="java.util.ArrayList" id="shopcar" scope="session"/>


<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Jstl4</title>
    </head>
    <body>
        <h1>----Jstl4----</h1>
	<c:forEach var="x" begin="1" end="10">
	    <c:out value="${x}"/><br>
	    
	</c:forEach>
	
	    <c:forEach var="x" begin="11" end="20" step="2">
	    <c:out value="${x}"/><br>
	    
	</c:forEach>
	    <c:forEach var="x" items="${shopcar}">
		<c:out value="${x.username}"/>,
		<c:out value="${x.tel}"/>,
		<c:out value="${x.birthday}"/><br>
	</c:forEach>
    </body>
</html>
